Skip to content

feat(observability): retain bounded worker job history - #197

Merged
Nickfost merged 1 commit into
mainfrom
t3/bounded-worker-job-history
Nov 26, 2026
Merged

Nickfost merged 1 commit into
mainfrom
t3/bounded-worker-job-history

Conversation

@Nickfost

Copy link
Copy Markdown
Member

Refs #119.

The existing authenticated scale-set listener now queues allowlisted job observations. The controller writes changed records to a protected private store and sweeps expired records while idle. Queue loss, interrupted sessions, storage faults, and missing runner associations leave explicit coverage evidence. Runner exit leaves the GitHub result unknown.

The existing publisher writes jobs.json under the snapshot lock. It caps the projection at 4 MiB, prioritizes nonterminal records, and durably limits full writes to one attempt per 60 seconds. The endpoint summary flags pending changes and binds liveness to validated history. Authenticated readback preserves verified terminal results and shows unknown current activity when evidence is pending, stale, or unavailable. Job links use validated owner, repository, and workflow run ID on github.com.

Verification

  • All 101 job-export and snapshot tests passed. The full Go 1.27.4 controller race suite passed on disk-backed scratch before the final small review fix. An exact-head rerun is in progress.
  • The private-store fixture retained 5,000 records in 20,484,096 allocated bytes across two files. The capped export retained 4,999 records, exported 4,960, and used 4,190,544 file bytes and 4,194,304 allocated bytes in the disk-backed fixture.
  • Three independent GPT-6.2 Sol review rounds identified issues with evidence freshness, batch boundaries, recovery, and the publication allowance. The final finding was a race when opening a cooldown file during atomic replacement. The publisher now owns validation of that file under its existing export lock.
  • ShellCheck, Python compilation, documentation links, Conventional Commits, whitespace, and immutable-commit secret scanning passed. The required GitHub Actions check runs full exact-source validation.

Documentation and rollout

Updated docs/ENDPOINT-SNAPSHOTS.md, docs/ENDPOINT-UI-DESIGN.md, and docs/STATUS-REPORTING.md. The standalone configuration template needs no update because this change introduces no adopter policy or capability.

Private directory provisioning, the controller mount, publisher scheduling, and live-host failure-isolation and retention evidence remain in #122. The listener-only history retains unknown coverage after an unclean restart because it has no reconciliation source.

Implementation ran as GPT-6.2 Sol in the Codex harness through T3 Code.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T20:09:02.056961Z 1d924ca PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Nickfost
Nickfost merged commit b59480a into main Nov 26, 2026
2 checks passed
@Nickfost
Nickfost deleted the t3/bounded-worker-job-history branch November 26, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant